<div class="fl kf-center">
	<div class="bk-a">
		<br />
		<div id="title">
			<a href="index.php">首页</a>><a href="reservationSystem.php">预定系统</a>
		</div>
		<div>
			<p class="kf-begin">
				舒适客房
			</p>
			<div class="bk-l"></div>
			<div class="mt10 mb10">
				<a class="yd-a" href="?r=order/step1">1.选择日期</a><a class="yd-b" href="?r=order/step2">2.选择房型</a><a class="yd-b" href="?r=order/step3">3.完善信息</a><a class="yd-c" href="?r=order/step4">4.确认订单</a>
			</div>

			<div class="yd-fx">
				<div class="yd-xx">
					<h1>入住信息</h1>
					<p class="mt10">
						入住时间：<?php echo $_SESSION["in_date"] ?>
                        <span class="ml20">离店时间：<?php echo $_SESSION["out_date"] ?></span>
                        <span class="ml20">客房数量：<?php echo $_SESSION["room_count"] ?> </span>
                        <a href="?r=order/step1" class="ml35">修改</a>
					</p>
				</div>
				<p class="mt10 fwb">
					选择房型
				</p>
				<br/>
                <form action="?r=order/step2" method="post" id="roomTypeForm">
				<select class="index-df-input" name="room_type" onchange="document.getElementById('roomTypeForm').submit()">
				<?php 
					foreach ($this->roomList->getData() as $key => $value) 
					{
						echo '<option value="'.$value["id"].'"';
						if ($_SESSION["room_type"] == $value["id"])
						{
							echo 'selected="true"';
						}
						echo '>'.$value["name"].'</option>';
					}
				?>
				</select>
				</form>
				<div class="yd-fx-bk cb mt10"></div>
				<div class="yd-fx-fx mt10">
					<div class="fl yd-fx-fx-l">
						<p>
							门市价：<?php if (!empty($surplusInfo)) echo $surplusInfo->market_price?>人民币/晚
						</p>
						优惠价：
						<i class="f18 c-t-d fwb"><?php if (!empty($surplusInfo)) echo $surplusInfo->discount_price?></i>
					</div>
					<div class="yd-fx-fx-r fl">
						<p>
							豪华客房,客房，1 张特大床或 2 张大床, 花园景观, 阳台
						</p>
						<p class="mt10">
							<a href="javascript:void(0)">客房详细信息</a>
						</p>
					</div>
				</div>
				
				<div class="cb"></div>
				<br/>
				<div>
					<table width="520px" border="1" class="room_surplus_table">
						<tr style="font-weight: bold;background-color: #e5d9cb;">
							<td>日期</td>
							<td>价格</td>
							<td>剩余数量</td>
						</tr>
						<?php 
						foreach ($roomSurplus as $key => $value) {
							echo '<tr>';
							echo '<td>'.$value["sur_date"].'</td>';
							echo '<td>'.$value["discount_price"].'</td>';
							echo '<td>'.$value["surplus_count"].'</td>';
							echo '</tr>';
						}
						?>
					</table>

				</div>
				<form action="?r=order/step3" method="post">
				<div class="mt20">
					<h2><img src="images/jia.png" />&nbsp;客户偏好选择（可选）</h2>
					<p class="mt10">
						床型选择：
						<input class="ml10" id="rdoBigBed" type="radio" <?php if (empty($_SESSION["bed_type"]) || $_SESSION["bed_type"] == 1) echo 'checked="checked"' ?> name="bed_type" value="1" />
						&nbsp;<label for="rdoBigBed">大床</label>
						<input class="ml10" id="rdoDblBed" type="radio" <?php if (!(empty($_SESSION["bed_type"])) && $_SESSION["bed_type"] == 2) echo 'checked="checked"' ?> name="bed_type" value="2" />
						&nbsp;<label for="rdoDblBed">双床</label>
					</p>
					<p class="mt10">
						加床：
						<input id="inputAddBed" type="checkbox" name="add_bed" value="1"  <?php if (!empty($_SESSION["add_bed"]) && $_SESSION["add_bed"] == 1) echo 'checked="checked"' ?>/>
						&nbsp;<label for="inputAddBed">300.00/人</label>
					</p>
					<p class="mt10">
						特殊要求：
					</p>
					<textarea name="other"><?php if (!empty($_SESSION["other"])) echo $_SESSION["other"] ?></textarea>
				</div>
				<div class="cb"></div>
                <div style="margin-top:10px;color: red;">
                    <?php
                        if ($canOrder != 'yes')
                        {
                            echo '抱歉，客房余量不满足，无法预订！';
                        }
                    ?>
                </div>
				<br/>
				<div class="mt10" style="margin-top: 20px;margin-bottom:30px;">
					<a href="?r=order/step1" class="yd-baek"  style="color:#b98c5d;width:80px;height:30px;">
						返回
					</a>
					<?php
                    if ($canOrder == 'yes')
                    {
                        echo '<input type="submit" value="下一步" class="yd-next"  style="color:#b98c5d;width:80px;height:30px;margin-left:80px;"/>';
                    }
                    ?>

				</div>
				</form>
			</div>

		</div>
	</div>
</div>
